﻿function focusIn(target) {
    if ($.trim($(target).val()) == "输入产品名称") {
        $(target).val("");
    }
}

function focusOut(target) {
    if (!$.trim($(target).val())) {
        $(target).val("输入产品名称");
    }
}

function validateSerachName(target, message) {
    if ($.trim($("#" + target).val()) == "输入产品名称" || $.trim($("#" + target).val()) == "") {
        alert(message);
        $("#" + target).focus();
        return false;
    }
    return true;
}